import request from "@/utlis/request";

enum API {
  NEW_URL = "/GetNews", //查询新闻信息
}

export const reqNewList = async (
  type: string,
  page: number,
  pageSize: number,
  isFilter: number,
) => {
  return request.get<any, any>(
    API.NEW_URL +
      "?type=" +
      type +
      "&page=" +
      page +
      "&pageSize=" +
      pageSize +
      "&isFilter=" +
      isFilter,
  );
};
